<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
    protected $table='goods';
    protected $primaryKey='goods_id';
    protected $fillable=[
      'name','stock','price','goods_sn','class_id','cover','detail','create_by','sell','status'
    ];

    public function my_picture()
    {
        return $this->hasMany('App\Models\GoodsImage','goods_id','goods_id');
    }

}
